//用于选择新增聊天窗口的用户列表
var chatChooseUserGrid = Ext.create('Ext.grid.Panel', {
    store: chatChooseUserGridStore,
    columns: [new Ext.grid.RowNumberer(), // 显示行号
        {
            text: '昵称',
            flex: 1,
            dataIndex: 'realName',
            sortable: false
        }
    ],
    listeners: [{
        itemdblclick: function (view, record, item, index, e, eOpts) {
            if (chattingListPanel.queryById(record.get('id')))
                Ext.Msg.alert("错误", "与该用户聊天窗口已打开！");
            else {
                var newChatting = Ext.create('chattingBase', record.get('id'), record.get('realName'));
                console.log(newChatting);
                chattingListPanel.insert(0, newChatting);//新建聊天框添加
            }
        }
    }]
});